package com.grwx.omc.baselog.service.impl;

import com.grwx.omc.baselog.dao.LoginLogMapper;
import com.grwx.omc.baselog.service.ILoginLogService;
import com.grwx.omc.common.entity.LoginLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description: 登录日志的dao层实现
 * @Author: ManJiang
 * @Date: 2020/5/11
 */
@Service
public class LoginLogServiceImpl implements ILoginLogService {

    @Autowired
    private LoginLogMapper loginLogMapper;

    @Override
    public int addLoginLog(LoginLog loginLog) {
        return loginLogMapper.addLoginLog(loginLog);
    }

    @Override
    public List<LoginLog> getLoginLogs(Map<String, Integer> map) {
        return loginLogMapper.getLoginLogs(map);
    }

    @Override
    public int getTotalCount() {
        return loginLogMapper.getTotalCount();
    }
}
